﻿/*==========================================================================================
     TASK 3:                                            {Primitive-Data-Types-and-Variables}
     Write a program that safely compares floating-point numbers with precision of 0.000001. 
     Examples:
     (5.3 ; 6.01) => false;  (5.00000001 ; 5.00000003) => true 
 ==========================================================================================*/

using System;

class ComapresFloatigpointNumbers
{
    static void Main()
    {

    //IO from Console:
        //Console.Write("First Number is:");
        //decimal a = Decimal.Parse(Console.ReadLine());
        //Console.Write("Second Number is:");
        //decimal b = Decimal.Parse(Console.ReadLine());
        
        decimal a = 4.000000901m;
        decimal b = 3.0000001m;
        
        char arrow='\u2192';
        bool compare=((Math.Abs(a - b)) < 0.000001m);
       
        Console.WriteLine("({0},{1}){2}{3}",a,b,arrow,compare);
        
    }
}

